// house_pkg/pages/building/index.ts
Page({
  data: {
    street: '',
    size: 0,
    type: ''
  },

  onLoad(options) {
    // 模拟数据
    this.fake(options.street, 5, 10)
  },
  fake(street, min, max) {
    let size = Math.round(Math.random() * min + max - min)
    console.log(size)
    let type = size > 6 ? '号楼' : '栋'
    // 设置页面数据
    this.setData({
      street,
      size,
      type
    })
  }


});
